<?php

class Contest_Form_Judge extends YouNet_Form
{
	protected $_element_decorators = array(
		'ViewHelper',
		'Description',
		'Errors',
		array('HtmlTag', array('tag' => 'dd')),
		array('Label', array('tag' => 'dt')),
	);
	
	
	public function init()
	{
		$this->setMethod('post');
		$this->setAttrib('class','sm_form');
		
		$this->addElement('text', 'score1', array(
			'label' => $this->getTranslator()->_('LABEL_SCORE1'),
			'required' => true,
			'filters' => array('StringTrim'),
			'validators' => array(
				'Digits',
				new Zend_Validate_Between(1, 10),
			),
		));
			
		$this->addElement('text', 'score2', array(
			'label' => $this->getTranslator()->_('LABEL_SCORE2'),
			'required' => true,
			'filters' => array('StringTrim'),
			'validators' => array(
				'Digits',
				new Zend_Validate_Between(1, 10),
			),
		));
		
		$this->addElement('submit', 'submit', array(
			'label' => $this->getTranslator()->_('LABEL_SAVE'),
			'class' => 'greenbutton',
			 'decorators' => array(
				'ViewHelper',
				'FormElements',
				'DtDdWrapper',
			),
		));
	}
}

